package com.eagle.view.widget;

import android.app.AlertDialog;
import android.content.Context;
import android.os.Bundle;

import com.eagle.R;

/**
 * Created by gc on 2016/12/8.
 */

public class LoadingDialog extends AlertDialog {


    public LoadingDialog(Context context, int theme) {
        super(context, theme);
    }

    public LoadingDialog(Context context) {
        super(context, R.style.Dialog);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.layout_loading);
        setCanceledOnTouchOutside(false);
    }

    @Override
    public void cancel() {
        super.cancel();
    }
}